package com.hefei.garden.config.netty.handler.impl;

import com.hefei.garden.config.netty.handler.Handler;
import lombok.Setter;
import org.springframework.stereotype.Component;

@Component
@Setter
public class BusinessFutureHandler implements Handler {

    private Handler nextHandler;

    @Override
    public String handler(String msg) {
        System.out.println("接收到信息：" + msg);
        if (nextHandler != null) {
            nextHandler.handler(msg);
        }
        return msg;
    }

}


